package com.bilibili.demo;

public class SliverCard extends Card{
    public SliverCard() {}
    public SliverCard(String carID,String name,String phone,double money){
        super(carID,name,phone,money);
    }
    @Override
    public void huaqian(double money) {
        System.out.println("您当前消费："+money);
        System.out.println("优惠后的价格："+money*0.9);
        setMoney(getMoney()-money*0.9);
    }
}
